﻿using System;
using System.Collections.Generic;
//using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace SmsSyncService
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            if (Environment.CommandLine.IndexOf("-Debug", StringComparison.CurrentCultureIgnoreCase) != -1)
            {
                SmsSyncService s = new SmsSyncService();
                s.Start();
                Console.Read();
            }
            else
            {
                ServiceBase[] ServicesToRun;
                ServicesToRun = new ServiceBase[] 
			    { 
				    new SmsSyncService() 
			    };
                ServiceBase.Run(ServicesToRun);
            }
        }
    }
}
